package de.ikano.demo.polyglott.model;

public enum TimeUnit {
    NS(1e-9),
    MICRO(1e-6),
    MS(1e-3),
    S(1),
    MIN(60),
    H(3600),
    D(86400),
    W(604800),
    M(2592000),
    Y(31536000);
    private double conversionFactor;

    private TimeUnit(double conversionFactor) {
        this.conversionFactor = conversionFactor;
    }

    @Override
    public String toString() {
        return name().toLowerCase();
    }
    
    public double getConversionFactor() {
        return conversionFactor;
    }
}